luci-mod-network: reveal ra_preference as router priority
authorPaul Donald <[email protected]>
Sat, 13 Dec 2025 17:57:21 +0000 (18:57 +0100)
committerPaul Donald <[email protected]>
Sat, 13 Dec 2025 17:57:21 +0000 (18:57 +0100)
router preference sounds ambiguous, so we name it priority which
has an unambiguous meaning.

Signed-off-by: Paul Donald <[email protected]>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js

index e9fe9d74d1c7a5423097b620180d679526c0efb6..281a38ff46c7fd0341080c2fa4f49bf688839dd0 100644 (file)
@@ -889,6 +889,14 @@ return view.extend({
                                        so.depends('ra', 'server');
                                        so.depends({ ra: 'hybrid', master: '0' });
 
+                                       so = ss.taboption('ipv6-ra', form.ListValue, 'ra_preference', _('Router Priority'),
+                                               _('A tie-breaker for clients and their routes when multiple routers exist on the same network.'));
+                                       so.default = 'medium';
+                                       so.value('low', _('Low'));
+                                       so.value('medium', _('Medium'));
+                                       so.value('high', _('High'));
+                                       so.depends('ra', 'server');
+
                                        so = ss.taboption('ipv6-ra', form.RichListValue, 'ra_flags', _('<abbr title="Router Advertisement">RA</abbr> Flags'),
                                                _('Specifies the flags sent in <abbr title="Router Advertisement">RA</abbr> messages, for example to instruct clients to request further information via stateful DHCPv6.'));
                                        so.optional = true;